﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ServerExplorer.SharePointConnections.SharepointSiteInfo.Entities
{
    [Serializable]
    public class WebPartStruct
    {
        private string _webPartName;

        private List<WebPartPage> _page;

        [XmlAttribute("Name")]
        public string WebPartName
        {
            get { return _webPartName; }
            set { _webPartName = value; }
        }

        [XmlElement("WebPartPage")]
        public List<WebPartPage> Page
        {
            get { return _page; }
            set { _page = value; }
        }

        public WebPartStruct()
        {
            Page = new List<WebPartPage>();
        }
    }
}
